% Using euc_dist distance


function [data] = Norm(origin_data,filename)


[num_instances,num_series] = size(origin_data);

%data=zeros(num_instances,num_series0;

fid=fopen(filename,'w');
for i=1:num_instances
data(i,:)=(origin_data(i,:)-mean(origin_data(i,:)))/std(origin_data(i,:));

for j=1:num_series
fprintf(fid,'%8.6f\t',data(i,j));
end
fprintf(fid,'\n');
end
fclose(fid);




